laravel order by random

39

laravel order by random -

$galleries = App\Gallery::inRandomOrder()->get();
//Or
DB::table('gallery')->inRandomOrder()->get();

Comments

Submit
0 Comments